
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Pto lensstack - PanoTools.org Wiki</title>




<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<meta name="generator" content="MediaWiki 1.35.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>





<!--[if lt IE 9]><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Pto_lensstack rootpage-Pto_lensstack skin-vector action-view skin-vector-legacy">


<div id="content" class="mw-body" role="main">
	<a id="top"></a>
	
	
	<h1 id="firstHeading" class="firstHeading" lang="en">Pto lensstack</h1>
	<div id="bodyContent" class="mw-body-content">
		<div id="siteSub" class="noprint">From PanoTools.org Wiki</div>
		
		
		
		
		
		
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p><b>Pto_lensstack</b> can manipulate lenses and stacks in <a href="Hugin.html" title="Hugin">Hugin</a> .pto project files. The intended use for Pto_lensstack is in <a href="Panorama_scripting_in_a_nutshell.html" title="Panorama scripting in a nutshell">Scripting</a>.
</p><p>The general use is
</p>
<pre>   pto_lensstack --output=output.pto --new-lens|--new-stack|--change-lens|--change-stack images input.pto
</pre>
<h2><span id="Assigning_new_lenses/stacks"></span><a name="Assigning_new_lenses.2Fstacks"><span class="mw-headline">Assigning new lenses/stacks</span></a></h2>
<p>You can assign a new lens or stack to an image or a set of images by providing a list of image numbers as parameters to the program. The counting starts with zero. Several images can be given at the same time. Separate them with a comma.
So
</p>
<pre>  pto_lensstack --new-lens i1,i3 input.pto
  pto_lensstack --new-stack i2,i4 input.pto
</pre>
<p>will assign a new lens to image 1 and 3 and a new stack to images 2 and 4.
</p>
<h2><span id="Changing_lenses/stacks"></span><a name="Changing_lenses.2Fstacks"><span class="mw-headline">Changing lenses/stacks</span></a></h2>
<p>For changing the lens or the stack provide a list of image numbers and the new lens/stack number. For both the counting starts with zero and you can supply several images separated by a comma at the same time.
</p><p>Examples:
</p>
<pre>  pto_lensstack --change-lens i1=4,i5=1 input.pto
  pto_lensstack --change-stack i2=0,i4=0 input.pto
</pre>
<h2><a name="General_options"><span class="mw-headline">General options</span></a></h2>
<ul><li><b>-o|--output output.pto</b> Output a pto file with the given filename. If not given it will append "_lens" to the input filename.</li>
<li><b>-h | --help</b> Display help.</li></ul>

<!--
Transclusion expansion time report (%,ms,calls,template)
100.00%    0.000      1 -total
-->


</div></div><div class="printfooter">Retrieved from "<a dir="ltr" href="https://wiki.panotools.org/index.php?title=Pto_lensstack&amp;oldid=14997">https://wiki.panotools.org/index.php?title=Pto_lensstack&amp;oldid=14997</a>"</div>
		</div></div></body></html>